home *** CD-ROM | disk | FTP | other *** search
- global GmaxiHelp, GmaxiCharme, GnbImageCharme, GnbPageCharme, GcptPageCharme, Ginitcharme, Gbonus, Gverif, code, descriptif, cle, crypter, Gmaxihard, GnbImageHard, GnbPageHard, GcptPageHard, GinitHard
-
- on enterFrame
- set Gbonus to 0
- set Gverif to 0
- set Ginitcharme to 1
- set the text of member "Oui_Non" to EMPTY
- set the text of member "textehelp" to the text of member "help1"
- set GmaxiHelp to 4
- set GmaxiCharme to 12
- set Gmaxihard to 6
- set GcptPageCharme to 0
- startTimer()
- set x to 2
- repeat while x < 70
- set the visible of sprite x to 0
- set x to x + 1
- end repeat
- set the visible of sprite 1 to 1
- set the visible of sprite 2 to 1
- set the visible of sprite 3 to 1
- set the visible of sprite 5 to 1
- set the visible of sprite 6 to 1
- set the foreColor of member "listecode" to 255
- set the foreColor of member "explication" to 255
- set the foreColor of member "compteurcharme" to 255
- set GnbImageCharme to the number of castMembers of castLib "charme"
- set x to GnbImageCharme mod GmaxiCharme
- if x <> 0 then
- set x to 1
- end if
- set GnbPageCharme to (GnbImageCharme / GmaxiCharme) + x
- set crypter to []
- set nb to the lineCount of member "fichierdescodes"
- set Texte to the text of member "fichierdescodes"
- set x to 1
- set code to []
- set descriptif to []
- set cle to []
- set sauve to the itemDelimiter
- set the itemDelimiter to ";"
- repeat while x < (nb + 1)
- set texteligne to line x of Texte
- add(code, item 1 of texteligne)
- add(descriptif, item 2 of texteligne)
- add(cle, item 3 of texteligne)
- add(crypter, 0)
- set x to x + 1
- end repeat
- set the itemDelimiter to sauve
- set nb to count(code)
- set Texte to EMPTY
- set x to 1
- repeat while x < (nb + 1)
- set Texte to Texte & getAt(code, x)
- set Texte to Texte & RETURN
- set x to x + 1
- end repeat
- set the text of member "listecode" to Texte
- set the foreColor of member "listecode" to 0
- set Texte to "Liste des codes " & RETURN
- set nb to count(code)
- set x to 1
- repeat while x < (nb + 1)
- set Texte to Texte & getAt(code, x) & " = " & RETURN
- set x to x + 1
- end repeat
- set the text of member "liste_a_imprimer" to Texte
- play frame "charme"
- end
-